package com.knowledge.graph.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.ibatis.annotations.Options;

import java.io.Serializable;
import java.util.Date;

/**
 * @author jiwenlong
 * @version 1.0
 * @description: 课程类
 * @date 2023/11/8 17:35
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("course")
public class Course implements Serializable {

    private static final Long serializeVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    private String courseName;

    private String courseImage;

    private String courseDescription;

    private String courseAddress;

    private String courseNodeType;

    private Date createTime;

    private Date updateTime;

    private String invitationCode;

    public Course(String courseName,String courseImage,String courseDescription,String courseAddress) {
        this.courseName = courseName;
        this.courseImage = courseImage;
        this.courseDescription = courseDescription;
        this.courseAddress = courseAddress;
    }
}
